import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_IDM_PERM: AppRouteRecordRaw = {
  path: '/deco-idm-perm',
  name: 'DecoIdmPerm',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '权限中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-idm-perm-role',
      name: 'DecoIdmPermRole',
      component: () => import('@/views/deco/idm/perm/role/list/index.vue'),
      meta: {
        locale: '角色管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_IDM_PERM;
